<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<iframe name="hidden_frame" id="hidden_frame" style="display:none; border:0; width:100%"></iframe>
<div class="currencyUpload" style="padding:15px 20px">
    <form action="<%=basePath%>/system/user/upladexceldata" method="post" enctype="multipart/form-data" class="uploadForm" target="hidden_frame">
        <input type="file" name="file" />
        <br />
        <br />
        <input type="submit" value="上传模板" />
         </form>
    <a href="<%=basePath%>/Template/物料导入模板(通用).xlsx">物料导入模板(通用).xlsx</a>
</div>

<script type="text/javascript">
    $(function () {
        $(".uploadForm").submit(function () {
            if ($(".Upload input[type=file]").val() == '') {
                ERP_alert('请选择要导入的文件');
                return false;
            }
            $(".currencyUpload").hide();
            $("#hidden_frame").show();
            return true;
        });
    });
    function CallBack() {
        $('#MaterialConvertWaiteDetaillist').datagrid('reload');
    }
</script>